package com.weixing.mall.core.enums;

import com.weixing.mall.base.enums.IBaseEnum;

public enum SortOrderEnum implements IBaseEnum<Integer> {

    SORT_RANDOM(1,"随机排序"),
    SORT_GOODS(2,"按照商品发布时间"),
    SORT_STOCK(3,"按照库存数量"),
    SORT_CLASS(4,"按照分类");

    private int value;
    private String desp;

    SortOrderEnum(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
